/*******************************************************************************
 * The MOSES project, model based software engineering of networked embedded systems.
 * 
 * Copyright (C) 2010-2013, University of Applied Sciences Wildau,
 * Telematics Research Group, http://www.tm.th-wildau.de/research-group
 * 
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as
 * published by the Free Software Foundation; either version 3 of the
 * License, or (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, see <http://www.gnu.org/licenses>.
 * 
 * Contributors:
 *     University of Applied Sciences Wildau - initial API and implementation
 * 
 * If you are interested in a commercial license please contact us via 
 * e-mail: ralf.vandenhouten@th-wildau.de.
 ******************************************************************************/
package de.thwildau.tm.moses.abnf.annotations;

import java.lang.annotation.ElementType;
import java.lang.annotation.Target;

import org.eclipse.xtend.lib.macro.Active;

/**
 * An Active Annotation for Xtend files. This active annotation parses the given {@link #data()} input and
 * automatically creates the access method to work with the data. The {@link #file()} parameter specifies the
 * the X-Abnf file.
 * <p>
 * An example how this annotation could look like
 * 
 * <pre>
 * @AbnfData( 
 *     file = "nmea.xabnf", 
 *     data = "$GPRMC,160026.73,A,1131.081,N,04344.067,E,300.00,4.96,110213,0.0,E*5A"
 * )
 * class NmeaMock {
 * 
 *      ...
 *      
 * }
 * </pre>
 * 
 * </p>
 * 
 * @author Thomas Kistel
 * @version $Revision: 762 $
 */
@Target(ElementType.TYPE)
@Active(AbnfDataProcessor.class)
public @interface AbnfData {

    /** The name of the X-Abnf file which must be located in the same directory as the annotated class. */
    String file();

    /** The ABNF content data, which can be parsed with the specification of the X-ABNF file. */
    String data();
}
